<?php
namespace GRH\Model;

class Semaine
{
    public $semaine_id;
    public $libelle;
    public $lundi;
    public $mardi;
    public $mercredi;
    public $jeudi;
    public $vendredi;
    public $samedi;
    public $dimanche;
    
    public function exchangeArray($data)
    {
        $this->semaine_id   = isset($data['semaine_id'])    ? $data['semaine_id']   : null;
        $this->libelle      = isset($data['libelle'])       ? $data['libelle']      : null;
        $this->lundi        = isset($data['lundi'])         ? $data['lundi']        : null;
        $this->mardi        = isset($data['mardi'])         ? $data['mardi']        : null;
        $this->mercredi     = isset($data['mercredi'])      ? $data['mercredi']     : null;
        $this->jeudi        = isset($data['jeudi'])         ? $data['jeudi']        : null;
        $this->vendredi     = isset($data['vendredi'])      ? $data['vendredi']     : null;
        $this->samedi       = isset($data['samedi'])        ? $data['samedi']       : null;
        $this->dimanche     = isset($data['dimanche'])      ? $data['dimanche']     : null;
    }
    
    public function getArrayCopy()
    {
        return get_object_vars($this);
    }
}